﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ex2.StudentsInfo
{
    [Serializable]
    public class Student
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public int FacultyNumber { get; set; }

        public Student(string firstName, string lastName, int facultyNumber)
        {
            FirstName = firstName;
            LastName = lastName;
            FacultyNumber = facultyNumber;
        }

        public override string ToString()
        {
            return string.Format("{0,-10}{1,-10}{2,-5}", this.FirstName, this.LastName, this.FacultyNumber);
        }
    }
}
